package com.jdb.settings.privoder.service.impl;

import com.guns21.result.domain.Result;
import com.guns21.support.service.BaseCommandService;
import com.jdb.settings.api.SettingDTO;
import com.jdb.settings.privoder.entity.SettingDO;
import com.jdb.settings.privoder.repository.SettingRepository;
import com.jdb.settings.privoder.service.SettingsCommandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SettingsCommandServiceImpl extends BaseCommandService implements SettingsCommandService {
    @Autowired
    private SettingRepository settingRepository;
    @Override
    public Result<SettingDTO> save(SettingDO settingDO) {
        settingRepository.save(settingDO);
        return Result.success();
    }
}
